package com.wj.auth.exception.message;

public abstract class ApplicationMessage {
    private int code;
    private MessageType type;
    private String message;

    protected ApplicationMessage(int code, String message, MessageType type) {
        this.code = code;
        this.message = message;
        this.type = type;
    }

    protected void setMessage(String message) {
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public MessageType getType() {
        return this.type;
    }

    public String getMessage() {
        return this.message;
    }
}